/********************************************************/
/*	Copyright (C) 2012 Gong Li Bin			*/
/*	Project:	MapReduce			*/
/*	Author:		gong_libin			*/
/*	Date:		2013_05_21			*/
/*	File:		MrTask.h			*/
/********************************************************/

#ifndef	_MRTASK_H
#define	_MRTASK_H 

#include "MrDb.h"
#include "MrDef.h"
#include "MrMd5.h"
#include "MrPro.h"
#include "MrUdp.h"
#include "MrTcp.h"
#include "MrSet.h"
#include "MrUtl.h"
#include "MrConf.h"
#include "MrTime.h"
#include "MrEpoll.h"
#include "MrMrDef.h"
#include "MrThread.h"

#include <getopt.h>
#include <signal.h>

#define	MR_TK_PAIR			32

typedef struct tagMrPara
{
	void* m_pPara;
	UINT m_uiSize;
}MRPARA_S;

void MrTkQuit(int iSignal);
void MrTkResponse(CMrUdp& rCUdp);
void MrTkHelp(char* pszProc, char* pszVersion);
int MrTkConfig(char* pszConf, char* pszSql, char* pszPort);
UCHAR MrTkOutput(CMrSet& rCHub, MRPARA_S& rstOut, CMrPro& rCPro, UCHAR* puszPacket);

#endif /* _MRTASK_H */
